<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    常量
    <script>
const NAME = Symbol()
const AGE = Symbol()
console.log(NAME,AGE)
    </script>
    对象属性
    <script>
        let obj={
            [NAME]:1
        }
        console.log(obj[NAME])
    </script>
单例的Symbol
    <script>
        Symbol.for(1)==Symbol.for(1)
    </script>
</body>
</html>